<template>
    <div class="content-container">
        <Title :icon="'bar-chart-fill'" :title="'商机私信数据'">
            <template #time>
                <svg-icon size="14px" icon-class="refresh-line" class="mr-5px"></svg-icon>更新于今天
            </template>
        </Title>
        <div class="h-400px ml-16px mr-16px" id="businessData">
        </div>
    </div>
</template>

<script setup lang="ts">
import Title from './Title.vue'
import * as echarts from 'echarts'

onMounted(() => {
    const chartDom = document.getElementById('businessData');
    const myChart = echarts.init(chartDom);
    let option;

    option = {
        xAxis: {
            type: 'category',
            data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
        },
        yAxis: {
            type: 'value'
        },
        series: [
            {
                data: [820, 932, 901, 934, 1290, 1330, 1320],
                type: 'line',
                smooth: true
            }
        ]
    };

    option && myChart.setOption(option);
})
</script>

<style lang="scss">

</style>